<template>
  <el-timeline>
    <el-timeline-item
      v-for="(event, index) in events"
      :key="index"
      :timestamp="event.timestamp"
      color="#0b5ed7"
      icon="el-icon-more"
    >
      <div class="event-content">
        <div>{{ event.timestamp }}</div>
        <div>{{ event.content }}</div>
      </div>
    </el-timeline-item>
  </el-timeline>
</template>

<script>
export default {
  data() {
    return {
      events: [
        { timestamp: '2024.06.08 19:15', content: '核查运行情况' },
        { timestamp: '2024.06.08 19:05', content: '启动应急预案' },
        { timestamp: '2024.06.08 19:00', content: '四川广元发生地震震级4.3级' },
      ],
    };
  },
};
</script>

<style scoped>
.event-content {
  background-color: #1f4ca5;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  margin: 10px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
/*
 ::deep  .el-timeline-item__tail {
  color:red;
  border-left: 2px solid #43a2ed !important; 
}
 */
 ::deep .el-timeline-item__tail {
      border-left: 2px solid #28567f;
    }
</style>
